import React, { FC } from 'react'
import ControllerConfigForm from '@pages/ControllerView/components/ControllerConfigForm'
import { Divider } from 'antd'
import FunctionConfigList from './components/FunctionConfig/FunctionConfigList'

interface ControllerViewProps {
  projectId:string,
  fileId:string,
}

const ControllerView :FC<ControllerViewProps> = (props) => {

  const { projectId,fileId } = props;

  return(
    <div style={{backgroundColor:'#fff'}}>
      <ControllerConfigForm fileId={fileId} />
      <Divider plain>方法配置</Divider>
      <FunctionConfigList projectId={projectId} fileId={fileId} />
    </div>
  )
}

export default ControllerView;
